个人博客 ,没有代码高亮还是不行。
var options = { cssPath: ['/static/kindeditor/plugins/code/prettify.css',],
再设置一下css :
pre.prettyprint { border: 0; border-left: 3px solid rgb(204, 204, 204); margin-left: 2em; padding: 0.5em; display: block; margin: 1em 0px; white-space: pre; word-break:break-all; word-wrap: break-word; word-break: normal; }